Skip to content

Conversation

@jsantell
Copy link
Collaborator

The refresh handler returns an OAuth2Tokens-like object, where the access token is stored as accessToken, not token like in AuthData:

Example response:

{
    "success": true,
    "message": "success",
    "tokenInfo": {
        "accessToken": "--",
        "tokenType": "Bearer",
        "expiresIn": 3599,
        "scope": [
            "https://www.googleapis.com/auth/calendar.readonly",
            "https://www.googleapis.com/auth/gmail.readonly",
            "https://www.googleapis.com/auth/userinfo.profile",
            "https://www.googleapis.com/auth/userinfo.email",
            "openid"
        ],
        "refreshToken": "--",
        "expiresAt": 1745438821918
    }
}

In gmail importer, we receive the above and fail to retry a request as the response is missing tokenInfo.token

@jsantell jsantell merged commit 10d1e11 into main Apr 23, 2025
5 checks passed
@jsantell jsantell deleted the serve-auth-data branch April 23, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants